package top.broncho.lottery.di

import dagger.Module
import dagger.android.ContributesAndroidInjector
import top.broncho.lottery.di.annotation.ActivityScope
import top.broncho.lottery.ui.history.HistoryActivity
import top.broncho.lottery.ui.main.MainActivity
import top.broncho.lottery.ui.ocr.OcrActivity


@Module
abstract class ActivityModule {

    @ActivityScope
    @ContributesAndroidInjector
    abstract fun contributeMainActivity(): MainActivity

    @ActivityScope
    @ContributesAndroidInjector
    abstract fun contributeOcrActivity(): OcrActivity

    @ActivityScope
    @ContributesAndroidInjector(modules = [HistoryFragmentModule::class])
    abstract fun contributeHistoryActivity(): HistoryActivity

}